regulate the speed of a machine